/**
 * 
 */
package com.dp.struct.adapter;

/**
 * This is to describe adaptor pattern.
 * 
 * An adapter helps two incompatible interfaces to work together. Technically
 * this pattern is used when you want two different classes with incompatible
 * interfaces to work together.
 * 
 * @author Sunaina.Sharma
 * 
 */
public class AdapterEx {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		MallardDuck duck = new MallardDuck();
		duck.quack();

		WildTurkey turkey = new WildTurkey();
		TurkeyAdapter turkeyAdapter = new TurkeyAdapter(turkey);
		turkeyAdapter.quack();
	}
}
